package com.tensquare.article;

import com.tensquare.util.IdWork;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
@EnableEurekaClient
public class Tensquare_Article_9004_App {

    public static void main(String[] args) {
        SpringApplication.run(Tensquare_Article_9004_App.class);
    }

    @Bean
    public RestTemplate getRestTemplate(){
        return new RestTemplate();
    }

    @Bean
    public IdWork getIdWork(){
        return  new IdWork(1, 1);
    }
}
